package com.itheima.service;


import javax.servlet.http.HttpSession;

/**
 * 用户业务处理接口
 */
public interface UserService {

    /**
     * 手机号码发送验证码
     */
    Integer sendMsg(String phone, HttpSession httpSession) throws Exception;

    /**
     * 移动端验证码登录
     * @param phone
     * @param code
     * @param httpSession
     */
    void login(String phone, String code, HttpSession httpSession);

    /**
     * 用户端退出
     */
    void loginout(HttpSession httpSession);

}
